using Newtonsoft.Json;
using SlickGridNet.Serialization;

namespace SlickGridNet
{
	[JsonConverter(typeof (SlickFormatterConverter))]
	public abstract class SlickFormatter : IExplicitObject
	{
		#region Implementation of IExplicitObject

		/// <summary>
		/// Returns explicit name of object wich will be used as serialization result of that object.
		/// <para>If value of ExplicitName is <c>null</c> object will be serialized as type FullName</para>
		/// </summary>
		virtual public string ExplicitName { get { return null; } }

		#endregion
	}
}